package de.pixelate.flixelprimer
{
	import org.flixel.*;
	
	public class Alien2 extends FlxSprite
	{
		[Embed(source="../../../../assets/png/Alien2.png")]
		
		private var ImgAlien2:Class;
		
		public function Alien2(x: Number, y: Number):void
		{
			super(x, y, ImgAlien2);
			velocity.x = -200;
		}
		
		override public function update():void
		{
			velocity.y = Math.cos(x / 50) * 50;
			super.update();
		}
	}
}